package com.bkgy.modular.tbdsjthemedata.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.bkgy.modular.tbdsjthemedata.entity.HotModel;
import com.bkgy.modular.tbdsjthemedata.entity.T_dpdo_data;
import com.bkgy.modular.tbdsjthemedata.entity.TbDsjThemeData;
import com.bkgy.modular.tbdsjthemedata.entity.Tbmodel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 主题数据表dao接口
 *
 * @author 生成器生成
 * @date 2022-08-01 15:15:42
 */
@Mapper
public interface TbDsjThemeDataDao {

    /**
     * 添加记录
     *
     * @param tbDsjThemeData 对象实体
     */
	void insertDataTbDsjThemeData(TbDsjThemeData tbDsjThemeData);

    /**
     * 根据主键删除对象
     *
     * @param
     */
	void deleteDataTbDsjThemeDataOne(@Param("theme_group_id") String theme_group_id, @Param("theme_variable") String theme_variable);

    /**
     * 删除多个对象
     *
     * @param value sql语句
     */
	void deleteDataTbDsjThemeDataMany(String value);

    /**
     * 修改记录
     *
     * @param tbDsjThemeData 对象实体
     */
	void updateDataTbDsjThemeData(TbDsjThemeData tbDsjThemeData);


    /**
     * 分页查看查看记录
     *
     * @param pageIndex 第几页
     * @param pageSize  每页总数
     * @return 对象数据集合
     */
	List<TbDsjThemeData> findDataTbDsjThemeDataByPage(@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize, @Param("theme_variable_description") String theme_variable_description, @Param("theme_group_id") String theme_group_id, @Param("theme_variable") String theme_variable);

    /**
     * 根据条件查看记录的总数
     *
     * @return 对象数据集合
     */
	Integer findDataTbDsjThemeDataByPageSize(@Param("theme_variable_description") String theme_variable_description, @Param("theme_group_id") String theme_group_id, @Param("theme_variable") String theme_variable);

    /***
     * 根据主键查询信息
     * @param indocno 用户id
     * @return
     */
	TbDsjThemeData findDataTbDsjThemeDataByIndocno(@Param("indocno") Long indocno);

    /**
     * 查看记录
     *
     * @return 对象数据集合
     */
	List<TbDsjThemeData> findDataTbDsjThemeData();

    List<Tbmodel> findDataThemlist(String theme_group_id);

	/**
	 * 查询热轧主题数据
	 * @param theme_group_id
	 * @return
	 */
	List<HotModel> findDataHotThem(String theme_group_id);
    @DS("db2C642")
	T_dpdo_data find_entid(@Param("extid") String extid);
	@DS("db2C621")
	T_dpdo_data find_entid_C621(@Param("extid") String extid);
	@DS("db2C622")
	T_dpdo_data find_entid_C622(@Param("extid") String extid);

}
